package com.mofeng.myshop.domain.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户登录相关
 * </p>
 *
 * @author MoFeng
 * @since 2024-04-17
 */
@Data
@Accessors(chain = true)
@TableName("tb_refresh_token")
@Schema(name="RefreshToken对象", description="用户登录相关")
public class RefreshToken implements Serializable {

    @Schema(description= "id")
    @TableId(value = "id", type = IdType.NONE)
    private String id;
    @Schema(description= "Pc token")
    private String pcToken;

    @Schema(description= "手机端  token")
    private String mobileToken;

    @Schema(description= "用户id")
    private String userId;

    @Schema(description= "手机端tokenKey的值")
    private String mobileTokenKey;

    @Schema(description= "PC端的tokenKey的值")
    private String pcTokenKey;

    @Schema(description= "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description= "更新时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
